#ifndef QRESOURCELISTWIDGET_H
#define QRESOURCELISTWIDGET_H

#include "corelibglobal.h"

#include <QListWidget>
#include <QMap>


namespace CORELIB
{

    class QResourceListWidget : public QListWidget
    {
        Q_OBJECT
    public:
        explicit QResourceListWidget(QWidget *parent = 0);


        void    add(const QString &name,const QIcon &icon);

        QSize ContentsSize();

        QString getName(QListWidgetItem* item);
    signals:

    public slots:

    protected:
        QMap<QListWidgetItem*,QString>  m_itemToName;
        QMap<QString,QListWidgetItem*>  m_nameToItem;
    };

}

#endif // QRESOURCELISTWIDGET_H
